﻿@page "/docs/helpers/enums/datagrid"

<Seo Canonical="/docs/helpers/enums/datagrid" Title="Enums: DataGrid" Description="Learn about the Blazorise DataGrid enums." />

<DocsPageTitle>
    Enums: DataGrid
</DocsPageTitle>

<DocsPageSection>
    <DocsPageSectionHeader Title="DataGridFilterMethod">
        <UnorderedList>
            <UnorderedListItem><Code>Contains</Code> search for any occurrence (default)</UnorderedListItem>
            <UnorderedListItem><Code>StartsWith</Code> search only the beginning</UnorderedListItem>
            <UnorderedListItem><Code>EndsWith</Code> search only the ending</UnorderedListItem>
            <UnorderedListItem><Code>Equals</Code> search must match the entire value</UnorderedListItem>
            <UnorderedListItem><Code>NotEquals</Code> opposite of Equals</UnorderedListItem>
        </UnorderedList>
    </DocsPageSectionHeader>
</DocsPageSection>

<DocsPageSection>
    <DocsPageSectionHeader Title="DataGridSortMode">
        <UnorderedList>
            <UnorderedListItem><Code>Single</Code> The data grid can only be sorted by one column at a time.</UnorderedListItem>
            <UnorderedListItem><Code>Multiple</Code> The data grid can sorted by multiple columns.</UnorderedListItem>
        </UnorderedList>
    </DocsPageSectionHeader>
</DocsPageSection>

<DocsPageSection>
    <DocsPageSectionHeader Title="DataGridSelectionMode">
        <UnorderedList>
            <UnorderedListItem><Code>Single</Code> The data grid only supports a row selected at a time.</UnorderedListItem>
            <UnorderedListItem><Code>Multiple</Code> The data grid enables multiple rows to be selected.</UnorderedListItem>
        </UnorderedList>
    </DocsPageSectionHeader>
</DocsPageSection>

<DocsPageSection>
    <DocsPageSectionHeader Title="DataGridCommandMode">
        <UnorderedList>
            <UnorderedListItem><Code>Default</Code> Default state which means that both defined commands and button row will render.</UnorderedListItem>
            <UnorderedListItem><Code>Commands</Code> Only defined commands will render.</UnorderedListItem>
            <UnorderedListItem><Code>ButtonRow</Code> Only button row will render.</UnorderedListItem>
        </UnorderedList>
    </DocsPageSectionHeader>
</DocsPageSection>

<DocsPageSection>
    <DocsPageSectionHeader Title="DataGridCommandMode">
        <UnorderedList>
            <UnorderedListItem><Code>Default</Code> Default state which means that both defined commands and button row will render.</UnorderedListItem>
            <UnorderedListItem><Code>Commands</Code> Only defined commands will render.</UnorderedListItem>
            <UnorderedListItem><Code>ButtonRow</Code> Only button row will render.</UnorderedListItem>
        </UnorderedList>
    </DocsPageSectionHeader>
</DocsPageSection>

<DocsPageSection>
    <DocsPageSectionHeader Title="DataGridPagerPosition">
        <UnorderedList>
            <UnorderedListItem><Code>Top</Code> Positions the pagination above the table.</UnorderedListItem>
            <UnorderedListItem><Code>Bottom</Code> Positions the pagination below the table.</UnorderedListItem>
            <UnorderedListItem><Code>TopAndBottom</Code> Positions the pagination on above and below the table.</UnorderedListItem>
        </UnorderedList>
    </DocsPageSectionHeader>
</DocsPageSection>

<DocsPageSection>
    <DocsPageSectionHeader Title="SortDirection">
        <Paragraph>Specifies the direction of a sort operation.</Paragraph>
        <UnorderedList>
            <UnorderedListItem><Code>None</Code> No sorting will be applied.</UnorderedListItem>
            <UnorderedListItem><Code>Ascending</Code> Sorts in ascending order.</UnorderedListItem>
            <UnorderedListItem><Code>Descending</Code> Sorts in descending order.</UnorderedListItem>
        </UnorderedList>
    </DocsPageSectionHeader>
</DocsPageSection>


<DocsPageSection>
    <DocsPageSectionHeader Title="DataGridSelectReason">
        <Paragraph>Defines the Select Reason of the DataGrid Selection.</Paragraph>
        <UnorderedList>
            <UnorderedListItem><Code>RowClick</Code> Row has been clicked.</UnorderedListItem>
            <UnorderedListItem><Code>MultiSelectClick</Code> Multi select has been triggered.</UnorderedListItem>
            <UnorderedListItem><Code>MultiSelectAll</Code> Multi select all has been triggered.</UnorderedListItem>
        </UnorderedList>
    </DocsPageSectionHeader>
</DocsPageSection>